<?php
$AppUI = Zend_Registry::get('AppUI');
if ($AppUI->id > 0) {			
	Vfriend_Session::end(1);
	if (isset($_SESSION) && $_SESSION) {
		session_regenerate_id();
		foreach ($_SESSION as $key=>$value) {
			if ($key != SESSION_BACKURL) {
				unset($_SESSION[$key]);
			}
		}
	}
} 
$this->_redirect(HOST_BACKEND);
?>